package design.patterns.visitor;

/**
 * desc     :
 * dateTime : 2020-06-14 15:37
 *
 * @author wwchen
 */
public class NodeB extends Node {

    /**
     * 接受一个访问者角色
     * @param visitor
     */
    @Override
    public void accept(Visitor visitor) {
        visitor.visit(this);
    }

    public String operationB() {
        return "NodeB is visited";
    }
}
